<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>添加权限</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="{$smarty.const.ADMIN_CSS_URL}mine.css" type="text/css" rel="stylesheet">
            {literal}
        <style type="text/css">
            li{list-style: none;}
        </style>
            {/literal}
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：权限管理-》给角色添加权限信息</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="{$smarty.const.__CONTROLLER__}/showlist">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <div>正在为角色：<span style="color:red;font-size:20px;font-weight: bold;">{$role_info.role_name}</span>分配权限</div>
            <form action="{$smarty.const.__SELF__}" method="post" enctype="multipart/form-data">
                <ul>
                    {foreach $auth_infoa as $k => $v}
<li><input type="checkbox" {if in_array($v.auth_id,$auth_arr)}checked='checked'{/if} name="auth[]" value="{$v.auth_id}"/>{$v.auth_name}</li>
                    {foreach $auth_infob as $kk => $vv}
                    {*内部的父id 与外部的id 相等才给显示*}
                    {if $vv.auth_pid==$v.auth_id}
                    <li>
                        <ul>
                            <li><input type="checkbox" {if in_array($vv.auth_id,$auth_arr)}checked='checked'{/if} name="auth[]" value="{$vv.auth_id}"/>{$vv.auth_name}</li>
                        </ul>
                    </li>
                    {/if}
                    {/foreach}
                    {/foreach}
                </ul>
                <input type="submit" value="分配权限" />
            </form>
        </div>
    </body>
</html>
